package com.cms.recursoshumanos.facade;

import com.cms.recursoshumanos.constant.Constant;
import com.cms.recursoshumanos.handler.WServiceCall;
import com.cms.recursoshumanos.json.me.JSONParser;

public class BeneficiosAdministrativosAcumFacade 
{
	private String strUsername;
	private String strPass;
	private int intIdBeneficio;
	
	
	public BeneficiosAdministrativosAcumFacade(String user,
													String password,
													int id_beneficio)
	{
		this.strUsername = user;
		this.strPass = password;
		this.intIdBeneficio = id_beneficio;
	}


	
	public String enviarSolicitud1() 
	{
		JSONParser jParser = new JSONParser();
		return setValores(jParser.
						getJSONFromUrl(
								Constant.URL_WEBSERVICE, 
								WServiceCall.getInstance().getVacaciones(strUsername, strPass)));
        
	}
	public String enviarSolicitud() 
	{
		JSONParser jParser = new JSONParser();
		return jParser.
						setPetitionToUrl(
								Constant.URL_WEBSERVICE, 
								WServiceCall.getInstance().getBeneficiosAdministrativoAcum(strUsername, strPass, intIdBeneficio));
        
	}
	
	public String setValores(String strResult)
	{
		
		//JsonObjectGetBeneficiosAdministrativos.getInstance().fromJSON(strResult);
		//return JsonObjectGetBeneficiosAdministrativos.getInstance().getResult();
		return null;
	}
	

	
	
}

